package com.example.demon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@TableName("order_table")
@Data
public class Order {
    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("car_number")
    private String licensePlate;

    @TableField("order_status")
    private int status;

    @TableField("order_time")
    private Date reservationTime;

    @TableField("create_time")
    private Date createTime;

    @TableField("cost")
    private Integer fee;

    @TableField("complete_time")
    private Date endTime;

    @TableField("user_id")
    private Long userId;

    @TableField("space_id")
    private Long spaceId;
}
